CC = gcc
CFLAGS = -W -Wall -O2

SRCS = $(shell ls *.c)
HDRS = $(SRCS:.c=.h)
OBJS = $(SRCS:.c=.o)
DIRS = $(shell ls -d */)

%.o: %.c %.h
	$(CC) $(CFLAGS) -c $<

